package com.codeoss.module.ir.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codeoss.framework.service.impl.BaseService;
import com.codeoss.module.ir.dao.IrDocTypeMapper;
import com.codeoss.module.ir.model.IrDocType;
import com.codeoss.module.ir.service.IIrDocTypeService;

@Service
public class IrDocTypeService extends BaseService<IrDocTypeMapper, IrDocType> implements IIrDocTypeService {

	@Override
	public Long getIrDocTypeIdByCode(String code) {
		// TODO Auto-generated method stub
		QueryWrapper<IrDocType> query=new QueryWrapper<IrDocType>();
		query.eq("code", code);
		IrDocType irDocType=getOne(query);
		return irDocType.getId();
	}
}